Replication Materials for "Political Geography and Firm Strategies: How Electoral Competition Influences Local Job Creation".

The contents of this folder include everything required to reproduce all figures and tables from the manuscript.

Some of the original raw data is restricted. As such, we only include a subset of the total inputs required for all code to run. Nevertheless, all scripts will run with the exception of the two with the "_NFR" suffix (not for replication). We include all scripts to facilitate others with access to these restricted data to replicate all parts of our analysis, starting with data creation and preparation.

The contents of this zipped folder are broken into four sub-directories, all of which are compressed with the 7Zip software.
	- Code/: This folder contains all the scripts required to reproduce all figures and tables from the manuscript, as well as a LOG folder containing log files for the full replication of the paper's results in March of 2023. In general, each script is named intuitively (i.e., "figure_2.R" creates the second figure in the manuscript, and so on). The Supporting Information (SI) scripts are larger, and produce all figures and tables for each section of the SI (i.e., "SI_A.R" produces all figures and tables for SI Section A, and so on). All scripts include a pre-amble that lists:
		- Inputs: Which files are used by this script and where they are stored in the Replication folder.
		- Outputs: Which outputs are generated by this script and where they are saved in the Replication folder.
		- System and Session Information: Detailed information about the R version, platform, operating environment, and package versions used in the script. Every script was run in March of 2023 in R version 4.2.0 in a Linux environment running Ubuntu 22.04 LTS with the exception of figure_7.R, which was run in R version 4.0.3 in a Linux environment running Red Hat Enterprise. This exception is to ensure successful execution of the stargazer package on survival objects which resulted in an error when run in the Ubuntu environment.
	- Prepped/: This folder contains the minimal set of prepared datasets required to reproduce all figures and tables from the manuscript. Short desctiptions of these objects are included in the preamble "Inputs:" sections in each relevant .R script.
	- Raw/: This folder contains the minimal set of raw datasets required to reproduce all figures and tables from the manuscript. Short desctiptions of these objects are included in the preamble "Inputs:" sections in each relevant .R script, alongside citations and URLs as appropriate.
	- Results/: This folder contains all the results, including both data outputs from the data_analysis.R script, as well as subfolders for "Figures/" and "Tables/".

The "Prepped/" and "Raw/" subdirectories include folders called "NFR", which are empty in the publicly available replication materials, but which locally contain the restricted data from:
	- ReferenceUSA (http://www.referenceusa.com/Home/Home)
	- agency contact data provided by Melinda N. Ritchie from her book "Backdoor Lawmaking" (2023) (https://global.oup.com/academic/product/backdoor-lawmaking-9780197670484?cc=us&lang=en&)
	- the hyrdated politician tweets from Littman (2017) (https://doi.org/10.7910/DVN/UIVHQR)
	- the politician press releases from Lexis Nexis (https://www.lexisnexis.com/)
	- House election results, obtained from David Leip's Atlas of U.S. Presidential Elections (https://uselectionatlas.org/)
	- Governor vote shares, obtained from Congressional Quarterly: https://library.cqpress.com/elections/
In addition, we moved the raw datasets from DCInbox to reduce the size of the zipped folder, but these are publicly available from Lindsey Cormack's website dcinbox.com.

Any script that relies on the contents of the NFR subdirectories will not run, but are included for reference. Any script that will not run are indicated with *_NFR.R.